[<tag id="shippingproductcode" type="postback" value="" />]
[<tag id="pickuppointref" type="postback" value="" />]
[<tag id="pickuppointaddr" type="postback" value="" />]

<!-- This template contains shipping and summary functionality that needs to be here in order to save properly -->

<!-- Shipping options radio buttons -->
<div id="shippingoptions">
    <div class="formrow">
    <h3>[<tag type='valueof' resourcekey='General.lblshippingoptions' />]</h3>
	    [<tag id="rblshippingoptions" cssclass="radiobuttonlist" type="radiobuttonlist" resourcekey='CartView.shippingoption2' RepeatDirection="Vertical" RepeatColumns="1" RepeatLayout="Flow" SelectedValue="1" />]        
	</div>
</div>

<!-- Shipping methods  -->
<div id="shippingmethods">
    <div class="formrow">
        <h3>[<tag type='valueof' resourcekey='General.shippingmethods' />]</h3>
	    <div id="providerselection">
	        [<tag cssclass="radiobuttonlist" type="shippingproviders" RepeatDirection="Horizontal" RepeatColumns="0" RepeatLayout="Flow" />]
		</div>
	    <div id="providertemplates"></div>
	</div>
</div>

<!-- Order summary box from here down  -->
<div class="checkoutextra" style="display:none;">

    <div class="formrow">
        <h3>[<tag type='valueof' resourcekey='General.lblordersummary' />]</h3>
    </div>

<!-- Order summary text inputs  -->
<div class="summaryleft">
   
    <div class="formrow">
        <label>[<tag type='valueof' resourcekey='General.lblspecialinstructions' />]</label>
        [<tag id='extramessage' type='textbox' textmode="MultiLine" height="60" />]
    </div>

	[<tag type="if" function="settings" key="checkoutpromocode" testvalue="True" display="{ON}" />]
    <div class="formrow">
        <label>[<tag type='valueof' resourcekey='General.PromotionalCode' />]</label>
        [<tag id='promocode' type='textbox' />]
    </div>
	[<tag type="endtestof"  />]

	[<tag type="if" function="settings" key="checkouttaxcode" testvalue="True" display="{ON}" />]
    <div class="formrow">
        <label>[<tag type='valueof' resourcekey='General.TaxNumber' />]</label>
        [<tag id='taxnumber' type='textbox' />]
    </div>
	[<tag type="endtestof"  />]

	[<tag type="if" function="settings" key="copyorderto" testvalue="True" display="{ON}" />]
    <div class="formrow">
	    <label>[<tag type='valueof' resourcekey='General.copyorderto' />]</label>
	    [<tag type='cartemailaddress' datatype="email"/>] 
    </div>
	[<tag type="endtestof"  />]

    <div class="formrow">            
        <!-- "updatecart" & "clearcart" class is used by JQuery to trigger events, must be left on -->
        [<tag id="cmdUpdate" type="button" cssclass="primarybutton updatecart" resourcekey="CartView.UpdateCart" commandname="updatecart" />]
    </div>

</div>

<div class="summaryright">

	<ul class="checkoutdetails">
		<li class="large"><div>[<tag type='valueof' resourcekey='General.Subtotal' />]</div>[<tag type="currencyof" xpath="genxml/appliedsubtotal" />]</li>
		<li class="large"><div>[<tag type='valueof' resourcekey='General.Discount' />]</div>[<tag type="currencyof" xpath="genxml/applieddiscount" />]</li>
		<li class="large"><div>[<tag type='valueof' resourcekey='General.Shipping' />]</div>[<tag type="currencyof" xpath="genxml/appliedshipping" />]</li>
		<li class="large"><div>[<tag type='valueof' resourcekey='General.Tax' />]</div>[<tag type="currencyof" xpath="genxml/taxcost" />]</li>
		<li class="total larger"><div>[<tag type='valueof' resourcekey='General.Total' />]</div>[<tag type="currencyof" xpath="genxml/appliedtotal" />]</li>
		[<tag type="if" function="settings" key="subscribenewsletter" testvalue="True" display="{ON}" />]
		<li class="formrow submissioncheck">[<tag id="chknews" type="checkbox" checked="True" resourcekey="CartView.chknews" />]</li>
		[<tag type="endtestof"  />]
		<li class="formrow submissioncheck">[<tag id="chkterms" type="checkbox" cssclass="acceptterms" resourcekey="CartView.chkterms" />]</li>
		<li class="submission">[<tag id="cmdOrder" type="button" cssclass="primarybutton" resourcekey="CartView.Order" commandname="order" />]</li>
	</ul>

    [<tag type='if' function='isclientordermode' display='{ON}' displayelse='{OFF}' />]
    [<tag type='if' function='carteditmode' testvalue="C" display='{ON}' />]
        <div class="debug">Order being created for client</div>
    [<tag type="endtestof"  />]
    [<tag type='if' function='carteditmode' testvalue="R" display='{ON}' />]
        <div class="debug">Order being re-ordered for client</div>
    [<tag type="endtestof"  />]
    [<tag type='if' function='carteditmode' testvalue="E" display='{ON}' />]
        <div class="debug">Order being edited for client</div>
    [<tag type="endtestof"  />]
    [<tag type="endtestof"  />]
    
</div>

</div>
